﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySoftWare.BaseModel;

namespace MySoftWare.MVCCommon.Repository
{
    /// <summary>
    /// added by lqm 2013.06.18
    /// </summary>
    public interface IUserRepository
    {
        /// <summary>
        /// 获取所有的用户组
        /// </summary>
        /// <returns></returns>
        List<UserGroupModel> GetUserGroupList();

        /// <summary>
        /// 添加用户组信息
        /// </summary>
        /// <param name="UserGroup"></param>
        /// <returns></returns>
        bool AddUserGroup(UserGroupModel UserGroup);

        /// <summary>
        /// 删除用户组信息
        /// </summary>
        /// <param name="DeleteUserGroupID"></param>
        /// <returns></returns>
        bool DeleteUserGroup(string DeleteUserGroupID);

        /// <summary>
        /// 获取用户组详细信息
        /// </summary>
        /// <param name="GroupID"></param>
        /// <returns></returns>
        UserGroupModel GetUserGroupDetail(string GroupID);

        /// <summary>
        /// 修改用户组信息
        /// </summary>
        /// <param name="UserGroup"></param>
        /// <returns></returns>
        bool UpdateUserGroup(UserGroupModel UserGroup);
    }
}
